/**
 * Created by 9WEB on 2018/6/29.
 */

$(document).ready(function(){
    var width = window.innerWidth;
    if(width>480){
        function auto_height()
        {
            var h= document.documentElement.clientHeight;
            var high = document.getElementById("banner");
            var high1 = document.getElementById("mark");
            high.style.height=h+"px";
            high1.style.height=h+"px";
            document.getElementById("banner").style.height=document.documentElement.clientHeight;
            document.getElementById("mark").style.height=document.documentElement.clientHeight;
        }
        auto_height();
        onresize=auto_height;
    }else{
        $("#banner").css("height",260+"px");
    }
});